package com.mianyang.zhangsan.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author jiangjr
 * @since 2022-10-23
 */
@Getter
@Setter
@TableName("sec_approval")
@ApiModel(value = "SecApproval对象", description = "")
public class SecApproval implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("审批编号")
    @TableId(value = "approval_id", type = IdType.AUTO)
    private Long approvalId;

    @ApiModelProperty("审批内容")
    private String content;

    @ApiModelProperty("审批人编号")
    private Long receiveId;

    @ApiModelProperty("审批人姓名")
    private String receiveName;

    @ApiModelProperty("发起审批人编号")
    private Long senderId;

    @ApiModelProperty("发起审批人姓名")
    private String senderName;

    @ApiModelProperty("审批状态: 0-待审批，1-审批通过，2-审批未通过，3-申请超时")
    private Integer approvalStatus;

    @ApiModelProperty("审批模板编号")
    private Long templateId;

    @ApiModelProperty("发起审批时间")
    private Date startTime;

    @ApiModelProperty("审批结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;


}
